<?php
/**
 * Created by JetBrains PhpStorm.
 * User: guansong
 * Date: 17/2/23
 * Time: 下午3:19
 * To change this template use File | Settings | File Templates.
 */

namespace app\admin\model;


use think\Model;

class News extends Model {
    //关联，一个新闻包含多个 comment（回复）
    public function comments()
    {
        return $this->hasMany("Comment");
    }
}